#include <stdlib.h>
#include <string.h>
#include <stdio.h>

#include "ex1.h"

int idenInt(int v, char c)
{
	return v;
}

char idenChar(char v, char c)
{
	return v;
}

char* idenString(char* v, char c)
{
	return v;
}


int main()
{
	char plain[] = {'p','l','a','i','n','t','e','x','t'};
	int* outputI = encryptToInt(plain, 9, 1, idenInt);
	char* outputC = encryptToChar(plain, 9, 'd', idenChar);
	char** outputS = encryptToString(plain, 9, "test", idenString);
	int i;
	for(i=0; i<9; i++)
		printf("%s, %d, %c\n", outputS[i], outputI[i], outputC[i]);
	free(outputI);
	free(outputC);
	for(i=0; i<9; i++)
		free(outputS[i]);
	free(outputS);
	return 0;
}
